<?php
if($client = $this->get('pagename')) {
	$client = explode('/', $client);
	cmsdream_login::save_sc(array(array(
		'name'=>'cmsdream-client-'.$this->hash,
		'value'=>$client[1],
		'expires'=>time() + 7776000,
		'path'=>'/'
	)));
	header("Location:".$this->referer());
	exit;
}
